#include "type.h"

typedef struct acc_sensor_t
{
    float a_x;
    float a_y;
    float a_z;
} acc_sensor_t;

extern acc_sensor_t acc;

void accelerometer_init(void);
void accelerometer_calibrate(void);
void accelerometer_sample(void);
double acc_get_pitch(void);
double acc_get_yaw(void);
double acc_get_roll(void);

